is not only a kind of fruit but also something GREAT:).
Yang SHEN
Jan,2017
- "For The Peace of the World!"
- "For Meanningful AC of User Story, for ALL."
- "For Better Fresh Air!"
- "For More Testable Code Naturally, for DEV."
- "For Bridging Executable AC To Testable Code, for DEV."
STOP! Tell Me!
TDD or BDD, that's the question! -- ShakesXXXre...
NOTE & Talk a little...
- TDD is good, it has no fault
- BDD is an extension instead of replacement
Cucumber is a framework for BDD (Behavior-Driven Development)! It means
- Living Docs(Executable & Update-to-date)
- Single Source of Truth(Feature/Test/Code)
- Automation Test Tool
- Less Rework
- Test Tools Integration(Unit Test/Selenium/WatiN)
Binding Business Requirements to .NET Testable Code
"Talk is cheap, show me the cucumber!" -- Linos
A simple Gherkin statement example. Everyone understand what is going on of the feature with this statement.
"Show me more code in project!" -- Someone
OK, as you wish..... Show it (feature/code/test/configuration) in VS2015
You need extend VS2015 with the add-on.
- Create your feature files while composing AC.
- Compose the feature statement in Gherkin
- Generate feature steps
- Fill the steps and run tests
- Make all the tests pass
- Create another feature
NOTE: by default, SpecFlow use NUnit as default Unit Test Provider, you can change it to MSTest
More practice are needed.
Useful Resources: